|
Command: |
Load a secret key (encrypted using LMK pair 34-35) into the HSM's tamper- protected memory. |
|
Notes: |
This command requires the optional RSA licence, error code 67 will be returned if the command is not licenced. It is the responsibility of the Host application to ensure that a previously-loaded secret key is not accidentally overwritten by this command. See: Using the RSA cryptosystem for details of where valid values of the common parameters can be found. |
|
Field |
Length & Type |
Details | |
|
COMMAND MESSAGE |
|||
|
Message header |
m A |
(Subsequently returned to the Host unchanged). |
|
|
Command code |
2 A |
Value EK. |
|
|
Key index |
2 N |
Index number for secret key to be stored (used if multiple storage of keys is required). HSM: can be 00 to 20. |
|
|
Secret key length |
4 N |
Length (in bytes) of the next field. |
|
|
Secret key |
n B |
Secret key, encrypted under LMK pair 34-35. |
|
|
End message delimiter |
1 C |
Optional. Must be present if a message trailer is present. Value X’19. |
|
|
Message trailer |
n A |
Optional. Maximum length 32 characters. |
|
|
RESPONSE MESSAGE |
|||
|
Message header |
m A |
Returned to the Host unchanged. |
|
|
Response code |
2 A |
Value EL. |
|
|
Error code |
2 N |
00 : No error 03 : Invalid key index 04 : Insufficient memory for secret key storage 13 : LMK error; report to supervisor 15 : Error in input data 49 : Secret key error; report to supervisor 78 : Secret key length error |
|
|
End message delimiter |
1 C |
Present only if present in the command message. Value X’19. |
|
|
Message trailer |
n A |
Present only if present in the command message. Maximum length 32 characters. |
|
|
|
|
|
|
Example
Command Request:
EK000176<813C82DB56E9AEA2A4AFC0B068259553DF18C32AFCA60F49833F52CFC0E6FC70287794A
EE01F43F96B91B0492229367B6C9DDC2715CD668F94880D0AC0C4E5A0B22C8DAF12E2DA2F9BF8F47
5959D64FFCF80F03F86DAF297B92A2F1E0CE1CF629564EADB3B5689A0FAE636B9B6E27E652186A45
BC49CB13307281F5B3A63FBA315047071CDDBE15247E278120C467481CF99F4EE09626E85613B199
4B8230FED7F4C04B8BC9205A6CFB285B1DBA22D24><19>G564AG5E6ER46H4T6E45F6W54RE64GA6
Command Response:
EL00<19>G564AG5E6ER46H4T6E45F6W54RE64GA6